package srcInterviewPrep;

public class Point implements Comparable<Point> 
{
    int Time;
    int Id;
    PointType Type;
    
    public Point(
            int id,
            int time,
            PointType type)
    {
        this.Id = id;
        this.Time = time;
        this.Type = type;
    }
    
    @Override
    public int compareTo(Point p2)
    {
        return this.Time == p2.Time ? 0 : this.Time < p2.Time ? -1 : +1;
    }
}
